<template>
  <a-config-provider :locale="zh_CN">
    <div id="app">
      <router-view/>
    </div>
  </a-config-provider>
</template>

<script>
// import { domTitle, setDocumentTitle } from '@/utils/domUtil'
// import { i18nRender } from '@/locales'
import zh_CN from 'ant-design-vue/lib/locale-provider/zh_CN';
export default {
  data () {
    return {
      zh_CN
    }
  },
  // computed: {
  //   locale () {
  //     // 只是为了切换语言时，更新标题
  //     const { title } = this.$route.meta
  //     title && (setDocumentTitle(`${i18nRender(title)} - ${domTitle}`))

  //     // return this.$i18n.getLocaleMessage('zh-CN').antLocale
  //     return this.$i18n.getLocaleMessage(this.$store.getters.lang).antLocale
  //   }
  // }
}
</script>
